﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using System.IO;
using WCFService;

namespace WebApplication1
{
    public partial class _Default : System.Web.UI.Page
    {


        protected void Page_Load(object sender, EventArgs e)
        {
           // this.Label1.Text = (string)Session["name"];
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            AppDomain.CurrentDomain.SetData("SQLServerCompactEditionUnderWebHosting", true);
            Session["name"] = TextBox1.Text; //Setter
            LogicForumImp server = new LogicForumImp();
            Label1.Text = server.getForum(null,1).getTitle(); 
        }

        internal void getForum(string title)
        {
            this.Label1.Text = Title;
        }
    }
}
